package org.csu.mypetstore.persistence.impl;

import org.csu.mypetstore.persistence.LogDao;
import org.csu.mypetstore.util.JDBCUtils;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.Date;

public class LogDaoImpl implements LogDao {
    private JdbcTemplate template = new JdbcTemplate(JDBCUtils.getDataSource());
    @Override
    public void insertLog_signin(String username, String logmsg, Date time) {
        String sql = "insert into log values(?,?,?)";
        template.update(sql,username,logmsg,time);
    }
}
